package apIExercise.String;

public class startswith {
    public static void main(String[] args) {
        String str="thinking in java";
        boolean starts=str.startsWith("in");//判断str中语句是否以in开头的
        System.out.println(starts);
        boolean ends=str.endsWith("java");//判断str中语句是否以java结尾的
        System.out.println(ends);
    }
}
